package com.lotter.common.enumobject;

/**
 * 足彩玩法
 * @author cool
 *
 */
public enum OperationType {
	
	
	current_spf(0, "胜平负"), current_rqspf(1, "让球胜平负"),
	current_bf(2, "比分"), current_jqs(3, "总进球"),
	current_bqc(4, "半全场");
	private int code;

	
	private String desc;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private OperationType(int code,  String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(int i){
		for (OperationType type : values()) {
			if(type.getCode()==i){
				return type.getDesc();
			}
		}
		return null;
	}
}
